package cn.itcast.service.impl;

import cn.itcast.dao.UserDao;
import cn.itcast.dao.impl.UserDaoImpl;
import cn.itcast.domain.User;
import cn.itcast.service.UserService;

import java.util.List;

public class UserserviceImpl implements UserService {
    private UserDao dao = new UserDaoImpl();

    //登录验证
    public User login(String username, String password) {
        return dao.login(username,password);
    }
    //查询所有
    @Override
    public List<User> findAll() {
        return dao.findAll();
    }
}
